﻿using Newtonsoft.Json;
using SBlogCore.WebAdminApplication.SysManager.Dto;

namespace SBlogCore.WebAdminApplication.SysRoleManager.Dto
{
    public class MenuWithRoleOutPut
    {

        public long Id { get; set; }
        [JsonProperty("Title")]
        public string? Label { get; set; }
        [JsonProperty("ChildrenList")]
        public List<MenuWithRoleOutPut>? Children { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool? Checked { get; set; }
    }
    public class RoleWithMenuOutPut
    {

        [JsonProperty("Id")]
        public long Value { get; set; }

        public string Label => $"{Name}-{Code}";
        public string? Name { get; set; }
        public string? Code { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool? Checked { get; set; }
    }
}
